{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "验证码图像channel: (60, 160, 3)\n",
      "验证码文本最长字符数 4\n",
      "0 0.698994\n",
      "0.08\n",
      "1 0.526351\n",
      "2 0.347027\n",
      "3 0.401729\n",
      "4 0.425549\n",
      "5 0.373995\n",
      "6 0.340665\n",
      "7 0.34029\n",
      "8 0.352603\n",
      "9 0.359784\n",
      "10 0.356302\n",
      "11 0.341783\n",
      "12 0.328424\n",
      "13 0.328761\n",
      "14 0.337987\n",
      "15 0.340616\n",
      "16 0.342867\n",
      "17 0.337428\n",
      "18 0.334808\n",
      "19 0.331674\n",
      "20 0.333833\n",
      "21 0.333484\n",
      "22 0.33357\n",
      "23 0.336159\n",
      "24 0.333128\n",
      "25 0.328919\n",
      "26 0.330636\n",
      "27 0.324912\n",
      "28 0.331298\n",
      "29 0.332273\n",
      "30 0.335871\n",
      "31 0.332708\n",
      "32 0.32835\n",
      "33 0.326966\n",
      "34 0.329808\n",
      "35 0.333269\n",
      "36 0.332367\n",
      "37 0.329284\n",
      "38 0.331165\n",
      "39 0.330423\n",
      "40 0.32809\n",
      "41 0.328717\n",
      "42 0.330452\n",
      "43 0.333905\n",
      "44 0.33085\n",
      "45 0.329596\n",
      "46 0.328092\n",
      "47 0.328994\n",
      "48 0.330922\n",
      "49 0.328825\n",
      "50 0.333057\n",
      "51 0.328523\n",
      "52 0.330041\n",
      "53 0.330162\n",
      "54 0.330467\n",
      "55 0.328953\n",
      "56 0.327847\n",
      "57 0.326747\n",
      "58 0.328158\n",
      "59 0.325877\n",
      "60 0.332584\n",
      "61 0.328183\n",
      "62 0.327629\n",
      "63 0.330488\n",
      "64 0.331086\n",
      "65 0.328121\n",
      "66 0.333743\n",
      "67 0.327789\n",
      "68 0.329525\n",
      "69 0.327155\n",
      "70 0.326962\n",
      "71 0.327287\n",
      "72 0.328387\n",
      "73 0.327885\n",
      "74 0.327613\n",
      "75 0.329233\n",
      "76 0.326547\n",
      "77 0.327227\n",
      "78 0.328455\n",
      "79 0.330681\n",
      "80 0.327106\n",
      "81 0.327886\n",
      "82 0.332019\n",
      "83 0.328652\n",
      "84 0.327648\n",
      "85 0.326097\n",
      "86 0.329843\n",
      "87 0.328431\n",
      "88 0.329704\n",
      "89 0.329637\n",
      "90 0.329695\n",
      "91 0.325763\n",
      "92 0.328368\n",
      "93 0.329052\n",
      "94 0.330704\n",
      "95 0.327794\n",
      "96 0.329163\n",
      "97 0.325035\n",
      "98 0.330296\n",
      "99 0.327369\n",
      "100 0.329266\n",
      "0.0875\n",
      "101 0.328795\n",
      "102 0.327981\n",
      "103 0.327504\n",
      "104 0.32746\n",
      "105 0.329653\n",
      "106 0.32799\n",
      "107 0.329928\n",
      "108 0.327765\n",
      "109 0.326362\n",
      "110 0.32524\n",
      "111 0.327401\n",
      "112 0.328592\n",
      "113 0.327662\n",
      "114 0.327411\n",
      "115 0.328525\n",
      "116 0.326484\n",
      "117 0.326744\n",
      "118 0.327834\n",
      "119 0.328633\n",
      "120 0.327746\n",
      "121 0.327241\n",
      "122 0.326186\n",
      "123 0.325845\n",
      "124 0.3282\n",
      "125 0.329429\n",
      "126 0.329902\n",
      "127 0.32726\n",
      "128 0.331021\n",
      "129 0.326456\n",
      "130 0.327332\n",
      "131 0.327636\n",
      "132 0.326194\n",
      "133 0.326176\n",
      "134 0.328953\n",
      "135 0.32501\n",
      "136 0.326362\n",
      "137 0.327183\n",
      "138 0.326091\n",
      "139 0.32673\n",
      "140 0.327675\n",
      "141 0.326795\n",
      "142 0.325126\n",
      "143 0.328696\n",
      "144 0.326619\n",
      "145 0.326244\n",
      "146 0.329617\n",
      "147 0.328333\n",
      "148 0.326653\n",
      "149 0.327806\n",
      "150 0.326794\n",
      "151 0.328763\n",
      "152 0.325232\n",
      "153 0.328559\n",
      "154 0.326742\n",
      "155 0.326378\n",
      "156 0.327429\n",
      "157 0.327064\n",
      "158 0.3255\n",
      "159 0.328794\n",
      "160 0.326482\n",
      "161 0.325171\n",
      "162 0.328849\n",
      "163 0.326125\n",
      "164 0.327896\n",
      "165 0.32618\n",
      "166 0.329097\n",
      "167 0.325383\n",
      "168 0.327495\n",
      "169 0.327772\n",
      "170 0.326979\n",
      "171 0.327396\n",
      "172 0.32639\n",
      "173 0.326981\n",
      "174 0.325627\n",
      "175 0.326042\n",
      "176 0.327468\n",
      "177 0.327481\n",
      "178 0.328279\n",
      "179 0.3287\n",
      "180 0.327342\n",
      "181 0.328695\n",
      "182 0.326345\n",
      "183 0.324881\n",
      "184 0.32759\n",
      "185 0.326182\n",
      "186 0.32859\n",
      "187 0.329977\n",
      "188 0.328867\n",
      "189 0.328487\n",
      "190 0.326199\n",
      "191 0.325702\n",
      "192 0.326589\n",
      "193 0.326849\n",
      "194 0.325755\n",
      "195 0.325601\n",
      "196 0.325882\n",
      "197 0.327824\n",
      "198 0.326907\n",
      "199 0.32614\n",
      "200 0.327496\n",
      "0.095\n",
      "201 0.328793\n",
      "202 0.323885\n",
      "203 0.327221\n",
      "204 0.32554\n",
      "205 0.327534\n",
      "206 0.328148\n",
      "207 0.327578\n",
      "208 0.326023\n",
      "209 0.325704\n",
      "210 0.326247\n",
      "211 0.325651\n",
      "212 0.328054\n",
      "213 0.325408\n",
      "214 0.327181\n",
      "215 0.32803\n",
      "216 0.327926\n",
      "217 0.324969\n",
      "218 0.325951\n",
      "219 0.325467\n",
      "220 0.326111\n",
      "221 0.32756\n",
      "222 0.327417\n",
      "223 0.326263\n",
      "224 0.328205\n",
      "225 0.329056\n",
      "226 0.327057\n",
      "227 0.326161\n",
      "228 0.32378\n",
      "229 0.328823\n",
      "230 0.326717\n",
      "231 0.326278\n",
      "232 0.328129\n",
      "233 0.328578\n",
      "234 0.328508\n",
      "235 0.327485\n",
      "236 0.326112\n",
      "237 0.326891\n",
      "238 0.327541\n",
      "239 0.328294\n",
      "240 0.325192\n",
      "241 0.326179\n",
      "242 0.326801\n",
      "243 0.325844\n",
      "244 0.3282\n",
      "245 0.328218\n",
      "246 0.326245\n",
      "247 0.327591\n",
      "248 0.325655\n",
      "249 0.327283\n",
      "250 0.328006\n",
      "251 0.326409\n",
      "252 0.328459\n",
      "253 0.326446\n",
      "254 0.326361\n",
      "255 0.325723\n",
      "256 0.326963\n",
      "257 0.326472\n",
      "258 0.326383\n",
      "259 0.325917\n",
      "260 0.328503\n",
      "261 0.326019\n",
      "262 0.327317\n",
      "263 0.325582\n",
      "264 0.326349\n",
      "265 0.326046\n",
      "266 0.327085\n",
      "267 0.327718\n",
      "268 0.324716\n",
      "269 0.326917\n",
      "270 0.326993\n",
      "271 0.325889\n",
      "272 0.327469\n",
      "273 0.326131\n",
      "274 0.326623\n",
      "275 0.326569\n",
      "276 0.326208\n",
      "277 0.328453\n",
      "278 0.32612\n",
      "279 0.327494\n",
      "280 0.328461\n",
      "281 0.327557\n",
      "282 0.327511\n",
      "283 0.326597\n",
      "284 0.326238\n",
      "285 0.326588\n",
      "286 0.328026\n",
      "287 0.327795\n",
      "288 0.326219\n",
      "289 0.326259\n",
      "290 0.325626\n",
      "291 0.325836\n",
      "292 0.3262\n",
      "293 0.327336\n",
      "294 0.325665\n",
      "295 0.326396\n",
      "296 0.325732\n",
      "297 0.326877\n",
      "298 0.328115\n",
      "299 0.326071\n",
      "300 0.3269\n",
      "0.1025\n",
      "301 0.327639\n",
      "302 0.328709\n",
      "303 0.327169\n",
      "304 0.328401\n",
      "305 0.327313\n",
      "306 0.326006\n",
      "307 0.327767\n",
      "308 0.326794\n",
      "309 0.325543\n",
      "310 0.325226\n",
      "311 0.326562\n",
      "312 0.326074\n",
      "313 0.326661\n",
      "314 0.32721\n",
      "315 0.327462\n",
      "316 0.326352\n",
      "317 0.325296\n",
      "318 0.32825\n",
      "319 0.326421\n",
      "320 0.327355\n",
      "321 0.325621\n",
      "322 0.326789\n",
      "323 0.327375\n",
      "324 0.327302\n",
      "325 0.328748\n",
      "326 0.32809\n",
      "327 0.327555\n",
      "328 0.32571\n",
      "329 0.326855\n",
      "330 0.328399\n",
      "331 0.327044\n",
      "332 0.328293\n",
      "333 0.326757\n",
      "334 0.324789\n",
      "335 0.32639\n",
      "336 0.326651\n",
      "337 0.327595\n",
      "338 0.326837\n",
      "339 0.327669\n",
      "340 0.328095\n",
      "341 0.325878\n",
      "342 0.327421\n",
      "343 0.325725\n",
      "344 0.326907\n",
      "345 0.327161\n",
      "346 0.325265\n",
      "347 0.328755\n",
      "348 0.325634\n",
      "349 0.327342\n",
      "350 0.328189\n",
      "351 0.324699\n",
      "352 0.327271\n",
      "353 0.324122\n",
      "354 0.326488\n",
      "355 0.327338\n",
      "356 0.326171\n",
      "357 0.327379\n",
      "358 0.325855\n",
      "359 0.326374\n",
      "360 0.327301\n",
      "361 0.327353\n",
      "362 0.326571\n",
      "363 0.326367\n",
      "364 0.327926\n",
      "365 0.326731\n",
      "366 0.325282\n",
      "367 0.324419\n",
      "368 0.326076\n",
      "369 0.325482\n",
      "370 0.325734\n",
      "371 0.325252\n",
      "372 0.326301\n",
      "373 0.326914\n",
      "374 0.326717\n",
      "375 0.325997\n",
      "376 0.327276\n",
      "377 0.325154\n",
      "378 0.327327\n",
      "379 0.327618\n",
      "380 0.327856\n",
      "381 0.326618\n",
      "382 0.324624\n",
      "383 0.324831\n",
      "384 0.326767\n",
      "385 0.326477\n",
      "386 0.326753\n",
      "387 0.327514\n",
      "388 0.326498\n",
      "389 0.32768\n",
      "390 0.328044\n",
      "391 0.327139\n",
      "392 0.328169\n",
      "393 0.323541\n",
      "394 0.325879\n",
      "395 0.326934\n",
      "396 0.329395\n",
      "397 0.326031\n",
      "398 0.326616\n",
      "399 0.327425\n",
      "400 0.326654\n",
      "0.0975\n",
      "401 0.326436\n",
      "402 0.326085\n",
      "403 0.327406\n",
      "404 0.328035\n",
      "405 0.326751\n",
      "406 0.327896\n",
      "407 0.328782\n",
      "408 0.325342\n",
      "409 0.32724\n",
      "410 0.326786\n",
      "411 0.326555\n",
      "412 0.32668\n",
      "413 0.3267\n",
      "414 0.328509\n",
      "415 0.327101\n",
      "416 0.327069\n",
      "417 0.327103\n",
      "418 0.327501\n",
      "419 0.324878\n",
      "420 0.326383\n",
      "421 0.327066\n",
      "422 0.326414\n",
      "423 0.326759\n",
      "424 0.324915\n",
      "425 0.327262\n",
      "426 0.328006\n",
      "427 0.326477\n",
      "428 0.326811\n",
      "429 0.327495\n",
      "430 0.325533\n",
      "431 0.327229\n",
      "432 0.326069\n",
      "433 0.326791\n",
      "434 0.325773\n",
      "435 0.325307\n",
      "436 0.326913\n",
      "437 0.326197\n",
      "438 0.32678\n",
      "439 0.3264\n",
      "440 0.326406\n",
      "441 0.327815\n",
      "442 0.326735\n",
      "443 0.325983\n",
      "444 0.326218\n",
      "445 0.326758\n",
      "446 0.326926\n",
      "447 0.327623\n",
      "448 0.326595\n",
      "449 0.325384\n",
      "450 0.3272\n",
      "451 0.325235\n",
      "452 0.326363\n",
      "453 0.326041\n",
      "454 0.325681\n",
      "455 0.325672\n",
      "456 0.326818\n",
      "457 0.3255\n",
      "458 0.326873\n",
      "459 0.327878\n",
      "460 0.326515\n",
      "461 0.326306\n",
      "462 0.326058\n",
      "463 0.326276\n",
      "464 0.326441\n",
      "465 0.327641\n",
      "466 0.326593\n",
      "467 0.325959\n",
      "468 0.326421\n",
      "469 0.326393\n",
      "470 0.326257\n",
      "471 0.326915\n",
      "472 0.325839\n",
      "473 0.32497\n",
      "474 0.328031\n",
      "475 0.323233\n",
      "476 0.324987\n",
      "477 0.325759\n",
      "478 0.326296\n",
      "479 0.324735\n",
      "480 0.327583\n",
      "481 0.326318\n",
      "482 0.325392\n",
      "483 0.326539\n",
      "484 0.325992\n",
      "485 0.325969\n",
      "486 0.325951\n",
      "487 0.323622\n",
      "488 0.325561\n",
      "489 0.326217\n",
      "490 0.326156\n",
      "491 0.32523\n",
      "492 0.325987\n",
      "493 0.324424\n",
      "494 0.323909\n",
      "495 0.323136\n",
      "496 0.325875\n",
      "497 0.326042\n",
      "498 0.324857\n",
      "499 0.324394\n",
      "500 0.324472\n",
      "0.095\n",
      "501 0.325331\n",
      "502 0.325001\n",
      "503 0.323891\n",
      "504 0.324739\n",
      "505 0.324302\n",
      "506 0.323621\n",
      "507 0.323878\n",
      "508 0.325855\n",
      "509 0.323794\n",
      "510 0.323625\n",
      "511 0.321722\n",
      "512 0.322872\n",
      "513 0.32518\n",
      "514 0.323287\n",
      "515 0.323842\n",
      "516 0.322297\n",
      "517 0.322901\n",
      "518 0.32132\n",
      "519 0.319492\n",
      "520 0.319828\n",
      "521 0.320388\n",
      "522 0.321435\n",
      "523 0.31839\n",
      "524 0.322422\n",
      "525 0.320822\n",
      "526 0.319939\n",
      "527 0.319354\n",
      "528 0.316872\n",
      "529 0.317571\n",
      "530 0.315335\n",
      "531 0.316604\n",
      "532 0.316538\n",
      "533 0.316817\n",
      "534 0.315657\n",
      "535 0.311416\n",
      "536 0.312577\n",
      "537 0.313413\n",
      "538 0.31395\n",
      "539 0.312404\n",
      "540 0.311586\n",
      "541 0.307179\n",
      "542 0.307591\n",
      "543 0.309009\n",
      "544 0.305639\n",
      "545 0.306727\n",
      "546 0.304234\n",
      "547 0.305736\n",
      "548 0.295334\n",
      "549 0.298422\n",
      "550 0.301264\n",
      "551 0.299803\n",
      "552 0.295597\n",
      "553 0.296668\n",
      "554 0.294537\n",
      "555 0.296051\n",
      "556 0.29016\n",
      "557 0.291516\n",
      "558 0.293593\n",
      "559 0.281152\n",
      "560 0.289866\n",
      "561 0.285645\n",
      "562 0.288059\n",
      "563 0.286835\n",
      "564 0.277819\n",
      "565 0.279209\n",
      "566 0.279486\n",
      "567 0.280264\n",
      "568 0.279432\n",
      "569 0.277167\n",
      "570 0.277993\n",
      "571 0.273973\n",
      "572 0.268362\n",
      "573 0.268615\n",
      "574 0.271436\n",
      "575 0.275645\n",
      "576 0.271931\n",
      "577 0.264982\n",
      "578 0.269703\n",
      "579 0.26879\n",
      "580 0.268238\n",
      "581 0.273481\n",
      "582 0.27148\n",
      "583 0.264094\n",
      "584 0.267108\n",
      "585 0.267456\n",
      "586 0.253791\n",
      "587 0.26597\n",
      "588 0.250326\n",
      "589 0.254511\n",
      "590 0.259271\n",
      "591 0.263395\n",
      "592 0.26076\n",
      "593 0.257214\n",
      "594 0.250163\n",
      "595 0.264021\n",
      "596 0.248955\n",
      "597 0.251004\n",
      "598 0.253617\n",
      "599 0.254753\n",
      "600 0.25134\n",
      "0.4275\n",
      "601 0.253933\n",
      "602 0.2578\n",
      "603 0.261526\n",
      "604 0.255927\n",
      "605 0.245124\n",
      "606 0.263422\n",
      "607 0.263851\n",
      "608 0.24646\n",
      "609 0.258711\n",
      "610 0.245726\n",
      "611 0.258948\n",
      "612 0.25339\n",
      "613 0.256907\n",
      "614 0.244729\n",
      "615 0.245114\n",
      "616 0.253274\n",
      "617 0.243031\n",
      "618 0.245357\n",
      "619 0.246152\n",
      "620 0.240166\n",
      "621 0.250475\n",
      "622 0.245235\n",
      "623 0.245153\n",
      "624 0.24929\n",
      "625 0.253524\n",
      "626 0.247358\n",
      "627 0.242055\n",
      "628 0.234125\n",
      "629 0.244354\n",
      "630 0.24579\n",
      "631 0.244552\n",
      "632 0.226165\n",
      "633 0.253144\n",
      "634 0.23315\n",
      "635 0.250964\n",
      "636 0.24001\n",
      "637 0.236036\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "638 0.225085\n",
      "639 0.229596\n",
      "640 0.258579\n",
      "641 0.234722\n",
      "642 0.243952\n",
      "643 0.237422\n",
      "644 0.236376\n",
      "645 0.251997\n",
      "646 0.247321\n",
      "647 0.237965\n",
      "648 0.233899\n",
      "649 0.228281\n",
      "650 0.256061\n",
      "651 0.240796\n",
      "652 0.243868\n",
      "653 0.240814\n",
      "654 0.23478\n",
      "655 0.235421\n",
      "656 0.242424\n",
      "657 0.243541\n",
      "658 0.233584\n",
      "659 0.229641\n",
      "660 0.239767\n",
      "661 0.222719\n",
      "662 0.227521\n",
      "663 0.227951\n",
      "664 0.231925\n",
      "665 0.232482\n",
      "666 0.225702\n",
      "667 0.225075\n",
      "668 0.249692\n",
      "669 0.238411\n",
      "670 0.221965\n",
      "671 0.255092\n",
      "672 0.225498\n",
      "673 0.224229\n",
      "674 0.233034\n",
      "675 0.227547\n",
      "676 0.238923\n",
      "677 0.22836\n",
      "678 0.240191\n",
      "679 0.234569\n",
      "680 0.227744\n",
      "681 0.247023\n",
      "682 0.241023\n",
      "683 0.228517\n",
      "684 0.231601\n",
      "685 0.220857\n",
      "686 0.234076\n",
      "687 0.218786\n",
      "688 0.229714\n",
      "689 0.235388\n",
      "690 0.232414\n",
      "691 0.231136\n",
      "692 0.232117\n",
      "693 0.242179\n",
      "694 0.217147\n",
      "695 0.227055\n",
      "696 0.215686\n",
      "697 0.227647\n",
      "698 0.221088\n",
      "699 0.219182\n",
      "700 0.232019\n",
      "0.595\n",
      "701 0.224886\n",
      "702 0.226031\n",
      "703 0.243868\n",
      "704 0.227076\n",
      "705 0.229528\n",
      "706 0.230248\n",
      "707 0.226309\n",
      "708 0.230674\n",
      "709 0.234838\n",
      "710 0.217341\n",
      "711 0.218191\n",
      "712 0.227079\n",
      "713 0.220107\n",
      "714 0.240934\n",
      "715 0.219638\n",
      "716 0.222677\n",
      "717 0.214222\n",
      "718 0.221124\n",
      "719 0.211431\n",
      "720 0.20742\n",
      "721 0.223689\n",
      "722 0.22607\n",
      "723 0.220815\n",
      "724 0.22397\n",
      "725 0.225119\n",
      "726 0.226408\n",
      "727 0.223485\n",
      "728 0.223789\n",
      "729 0.212974\n",
      "730 0.221248\n",
      "731 0.205997\n",
      "732 0.227192\n",
      "733 0.203849\n",
      "734 0.225116\n",
      "735 0.212864\n",
      "736 0.20553\n",
      "737 0.21366\n",
      "738 0.230736\n",
      "739 0.223983\n",
      "740 0.225755\n",
      "741 0.224332\n",
      "742 0.218123\n",
      "743 0.229219\n",
      "744 0.230061\n",
      "745 0.220585\n",
      "746 0.231937\n",
      "747 0.22695\n",
      "748 0.20539\n",
      "749 0.206156\n",
      "750 0.222206\n",
      "751 0.210652\n",
      "752 0.225314\n",
      "753 0.206568\n",
      "754 0.208299\n",
      "755 0.208325\n",
      "756 0.21757\n",
      "757 0.231336\n",
      "758 0.216888\n",
      "759 0.200269\n",
      "760 0.20901\n",
      "761 0.198596\n",
      "762 0.202355\n",
      "763 0.20942\n",
      "764 0.190054\n",
      "765 0.216419\n",
      "766 0.212135\n",
      "767 0.20829\n",
      "768 0.190258\n",
      "769 0.223212\n",
      "770 0.220057\n",
      "771 0.215207\n",
      "772 0.205866\n",
      "773 0.193782\n",
      "774 0.210901\n",
      "775 0.200852\n",
      "776 0.212863\n",
      "777 0.205378\n",
      "778 0.203471\n",
      "779 0.217812\n",
      "780 0.21384\n",
      "781 0.202863\n",
      "782 0.204879\n",
      "783 0.19927\n",
      "784 0.197479\n",
      "785 0.217293\n",
      "786 0.214173\n",
      "787 0.214062\n",
      "788 0.204456\n",
      "789 0.206962\n",
      "790 0.210148\n",
      "791 0.213927\n",
      "792 0.195432\n",
      "793 0.198254\n",
      "794 0.200004\n",
      "795 0.208283\n",
      "796 0.206817\n",
      "797 0.199296\n",
      "798 0.211381\n",
      "799 0.210777\n",
      "800 0.213233\n",
      "0.6275\n",
      "801 0.201786\n",
      "802 0.203304\n",
      "803 0.19906\n",
      "804 0.200464\n",
      "805 0.204078\n",
      "806 0.205071\n",
      "807 0.196668\n",
      "808 0.193824\n",
      "809 0.197587\n",
      "810 0.201623\n",
      "811 0.191298\n",
      "812 0.177433\n",
      "813 0.206629\n",
      "814 0.22015\n",
      "815 0.204202\n",
      "816 0.205803\n",
      "817 0.229484\n",
      "818 0.193279\n",
      "819 0.197496\n",
      "820 0.192826\n",
      "821 0.182615\n",
      "822 0.186054\n",
      "823 0.19296\n",
      "824 0.1949\n",
      "825 0.203865\n",
      "826 0.193924\n",
      "827 0.191993\n",
      "828 0.205718\n",
      "829 0.191221\n",
      "830 0.206339\n",
      "831 0.206131\n",
      "832 0.193903\n",
      "833 0.192199\n",
      "834 0.207876\n",
      "835 0.191878\n",
      "836 0.187537\n",
      "837 0.188327\n",
      "838 0.185388\n",
      "839 0.198594\n",
      "840 0.196584\n",
      "841 0.185775\n",
      "842 0.199214\n",
      "843 0.203248\n",
      "844 0.194136\n",
      "845 0.192572\n",
      "846 0.207785\n",
      "847 0.191539\n",
      "848 0.189209\n",
      "849 0.195613\n",
      "850 0.193049\n",
      "851 0.190007\n",
      "852 0.180408\n",
      "853 0.169986\n",
      "854 0.182457\n",
      "855 0.195458\n",
      "856 0.168878\n",
      "857 0.16794\n",
      "858 0.196739\n",
      "859 0.178732\n",
      "860 0.195173\n",
      "861 0.183834\n",
      "862 0.194215\n",
      "863 0.187165\n",
      "864 0.189663\n",
      "865 0.186609\n",
      "866 0.180099\n",
      "867 0.172494\n",
      "868 0.170745\n",
      "869 0.202728\n",
      "870 0.184262\n",
      "871 0.17169\n",
      "872 0.183063\n",
      "873 0.180766\n",
      "874 0.179445\n",
      "875 0.176782\n",
      "876 0.182211\n",
      "877 0.173968\n",
      "878 0.184159\n",
      "879 0.198167\n",
      "880 0.186217\n",
      "881 0.187654\n",
      "882 0.180381\n",
      "883 0.191744\n",
      "884 0.18843\n",
      "885 0.202053\n",
      "886 0.171309\n",
      "887 0.193756\n",
      "888 0.176777\n",
      "889 0.179815\n",
      "890 0.181397\n",
      "891 0.19248\n",
      "892 0.188221\n",
      "893 0.171892\n",
      "894 0.182742\n",
      "895 0.167452\n",
      "896 0.178821\n",
      "897 0.180848\n",
      "898 0.171942\n",
      "899 0.185588\n",
      "900 0.189338\n",
      "0.7325\n"
     ]
    }
   ],
   "source": [
    "from cnn_train import run_train\n",
    "\n",
    "run_train()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "验证码图像channel: (60, 160, 3)\n",
      "验证码文本最长字符数 4\n",
      "INFO:tensorflow:Restoring parameters from ./save/cnn_train.model-900\n",
      "正确: 7262  预测: 7262\n"
     ]
    }
   ],
   "source": [
    "from cnn_data import gen_captcha_text_and_image\n",
    "from cnn_train import convert2gray\n",
    "from cnn_train import crack_captcha\n",
    "\n",
    "\n",
    "text, image = gen_captcha_text_and_image()\n",
    "\n",
    "image = convert2gray(image)  # 生成一张新图\n",
    "image = image.flatten() / 255  # 将图片一维化\n",
    "predict_text = crack_captcha(image)\n",
    "print(\"正确: {}  预测: {}\".format(text, predict_text))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.6.5"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
